<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.blockUI.js"></script>
<script type="text/javascript" src="js/developerManage.js"
	charset="utf-8"></script>
<center>
	<h2>
		员工管理
	</h2>
</center>
<style type="text/css">
</style>
<form>
	<table id="developer" border="1px" align="center"
		style="width: 800px; border-collapse: collapse; border: 1px">
		<tr>
			<td>
				序列
			</td>
			<td>
				员工编号
			</td>
			<td>
				员工姓名
			</td>
			<td>
				员工性别
			</td>
			<td>
				员工电话
			</td>
			<td>
				操作
			</td>
		</tr>
		<c:forEach items="${developers}" var="developer" varStatus="status">
			<tr did="${developer.devloperId}">
				<td>
					${status.count }
				</td>
				<td>
					${developer.developerNum }
				</td>
				<td>
					${developer.developerName }
				</td>
				<td>
					${developer.sex }
				</td>
				<td>
					${developer.cellPhone }
				</td>
				<td>
					<input type="button" id="update" value="修改" />
					<input type="button" id="delete" value="删除" />
				</td>
			</tr>
		</c:forEach>
	</table>
</form>

<div id="stencil" style="display: none">
	<input type="hidden" id="depId">
	<span id="developerUpdate">修改员工</span>
	<span id="developerAdd">添加员工</span>
	<br />
	<table>
		<tr>
			<td>
				员工编号：
			</td>
			<td>
				<input type="text" id="developerNum" />
			</td>
			<td>
				<span class="developerNum"></span>
			</td>
		</tr>
		<tr>
			<td>
				员工姓名：
			</td>
			<td>
				<input type="text" id="developerName" />
			</td>
		</tr>
		<tr>
			<td>
				员工性别：
			</td>
			<td>
				<select id="sex" style="width: 155px;">
					<option value="男">
						男
					</option>
					<option value="女">
						女
					</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				员工电话：
			</td>
			<td>
				<input type="text" id="cellPhone" />
			</td>
		</tr>

	</table>
	<input type="button" id="yes" value="确定" />
	<input type="button" id="no" value="取消" />
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
	height="30">
	<tr>
		<td>
			<div align="center">
				<input name="btnAddDeveloper" type="button" id="btnAddDeveloper"
					value="添加员工" />
			</div>
		</td>
	</tr>
</table>
